package com.dh.project.service.impl;

import com.baomidou.framework.service.impl.SuperServiceImpl;
import com.dh.project.mapper.CustomerCouponMapper;
import com.dh.project.model.CustomerCoupon;
import com.dh.project.model.CustomerInfo;
import com.dh.project.service.CustomerCouponService;
import com.dh.project.view.CouponView;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by admin on 2017/4/13.
 */
@Service
public class CustomerCouponServiceImpl extends SuperServiceImpl<CustomerCouponMapper, CustomerCoupon> implements CustomerCouponService {

    @Autowired
    private CustomerCouponMapper customerCouponMapper;

    @Override
    public List<CouponView> selectCouponViewByCustomerId(Map map) {
        return customerCouponMapper.selectCouponViewByCustomerId(map);
    }

    @Override
    public List<CustomerInfo> getCouponAct(Map map) {
        return customerCouponMapper.getCouponAct(map);
    }
}
